/*
 * @Author: Zhijie Luo
 * @LastEditors: Zhijie Luo
 * @Date: 2020-09-02 22:32:19
 * @LastEditTime: 2022-02-20 16:52:18
 * @Description: 
 */
import Vue from "vue";
import Router from "vue-router";
import Home from "@/views/Home.vue";
import demo_router from "./demo_router";
Vue.use(Router);
const routeName = process.env.VUE_APP_ROUTE_NAME; //  wx_virtual_card
const router = new Router({
  routes: [
    {
      path: '/',
      redirect: '/home'
    },
    {
      path: `/home`,
      name: "home",
      component: Home,
      meta: {
        isAuthority: true
      }
    },
    ...demo_router
  ]
});

router.beforeEach((to, from, next) => {
  console.log("to", to)
  next();
});
export default router;
